package com.lsmw.management.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 二号男嘉宾
 * @since 2020-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LsRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 房间唯一ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roomId;

    /**
     * 房间名
     */
    private String name;

    /**
     * 单间价格
     */
    private Double price;

    /**
     * 优惠价格
     */
    private Double tmpPrice;

    /**
     * 房间面积
     */
    private String area;

    /**
     * 图片
     */
    private String img;

    /**
     * 字段创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 字段最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 房间押金
     */
    private Double deposit;

    /**
     * 外键，酒店ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long hotelId;

    /**
     * 酒店名
     */
    private String hotelName;

}
